STEP 6: Let's complete the dance move by dropping more commands INSIDE the headstand() function.

  • Have the sprite Move Left 150 pixels, then Move Right 150 pixels.
  • Use Flip Up Down again so that the sprite is right side up at the end of the move.
  • In LOGIC, go to and drag Function Call BELOW the line that calls flip().
  • Change the function name in the call line to headstand() .

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)